<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button type="button" onclick="duihua()">点击我</button>
		<script type="text/javascript">
			function duihua(){
				var a = window.prompt("输入你的信息：");
				console.log(a);
			}
		</script>
	</body>
</html>
